import re


def fun():
    node_id = input('请输入设备ID：')
    correct_password = str(hex(int(node_id) * 32089 - 1024 * 1024)).replace('0x', '')
    print(correct_password)


if __name__ == '__main__':
    fun()
